package com.legrand.www.module.core.response;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;

/**
 * @author xiah
 * date 2018/4/26 16:01
 * 统一返回格式 所有controller在返回json数据时调用该包装类
 */
@Data
@AllArgsConstructor
public class BaseResponse<T> implements Serializable {
    private static final long serialVersionUID = -52359749850L;
    private Integer result = 1;
    private String message = "success";
    private Object response;

    public BaseResponse(Object response) {
        this.response = response;
    }
}
